import { LoginAccountDto } from '@app/modules/account/dto/login-account.dto';
import { LoginType } from '@app/types/enums';
import { ApiProperty } from '@nestjs/swagger';

export class AccountLoginDto extends LoginAccountDto {
  type: LoginType = LoginType.Account;
}

export class CodeLogin {
  @ApiProperty({ description: '登录类型', type: 'string' })
  type: LoginType;

  @ApiProperty({ description: '邀请码' })
  code: string;
}
export type AuthDto = AccountLoginDto | CodeLogin;
